Code Type | Color | RGB | Notes |
---|---|---|---|
keyword | red | r:207 g:0 b:0 | use for primitive data types, "void", "extends"... |
reserved word | purple | r:0 g:96 b:159 | ex: public, if, else, while, return, switch, case, break, try, catch, instanceof |
special word | blue-green | r:0 g:0 b:0 | ex: true, false, null... |
comment | blue | r:0 g:0 b:159 | single line and multi-line comments |
string | green | r:0 g:96 b:0 | include double quotation marks with the string |
regular code | black | r:0 g:0 b:0 |
The colors don't always show up this clearly in BlueJ. To check your own colors, take a screenshot of your BlueJ code with Alt+PrntScrn, paste into Photo Editor, save to a file, and import to Flash. Zoom in and use the dropper tool to get the exact RGB color mix.